package com.hn.framework.config;

import com.hn.config.HnConfigUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.sql.DataSource;

/**
 * 描述:
 *

 * @date 2019-12-27 17:34
 */
@Component
@Slf4j
public class HnConfig {

    @Autowired
    private DataSource ds;

    @Autowired
    private Environment environment;

    /**
     *  初始化好牛config
     */
    @PostConstruct
    public void init(){
       initHnConfig();
    }

    /**
     * 初始化好牛config
     */
    public void initHnConfig(){
//        log.debug("#######初始化好牛config begin ###########");
//        HnConfigUtils.init(ds);
//        log.debug("#######初始化好牛config end ###########");
    }

}
